package com.sykj.springboot.test.designMode.Observer4;

import java.util.Observable;
import java.util.Observer;

public class Liusi implements Observer {

    @Override
    public void update(Observable o, Object arg) {
        System.out.println("刘斯：观察到韩非子有活动");
        report(arg.toString());
        System.out.println("刘斯：汇报完毕");
    }
    private void report(String context){
        System.out.println("刘斯：报告老板："+context);
    }
}
